package com.zlx.redismessage.controller;

import com.zlx.redismessage.task.DetectionTask;
import com.zlx.redismessage.util.ScheduleUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author zhanglixiang
 * @date 2023/9/22 16:36
 */
@RestController
public class TestController {
	@GetMapping("/run")
	public void task() {
		ScheduleUtils.start(new DetectionTask("1"), new Date());
	}
}
